#include <Windows.h>
#include "CTradeRequestPacket.h"

CTradeRequestPacket::CTradeRequestPacket(CChar * schar) {

	this->type = 0x21;
	this->size = 0x06;
	memset(this->data, 0, sizeof(data));
	
	memcpy(this->data+0x04-0x04, &(schar->m_id), 4);

	unsigned short targId = schar->getTargId();
	memcpy(this->data+0x08-0x04, &targId, 2);

}

CTradeRequestPacket::~CTradeRequestPacket() {

}